package Thread;
//4.基于实现Runnable接口的基础上使用匿名内部类创建线程
/**
 * @projectName: Thread-20250806
 * @package: Thread
 * @className: Demo4
 * @author: Tongxinxin
 * @description: TODO
 * @date: 2025/8/6 14:12
 * @version: 1.0
 */
public class Demo4 {
    public static void main(String[] args) {
        Runnable runnable=new Runnable() {
            @Override
            public void run() {
                System.out.println("Thread!");
            }
        };
        Thread t=new Thread(runnable);
        t.start();
    }
}
